﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchTabs.ascx.cs" Inherits="CMS_SearchTabs" %>

<script>
    function SetCurrent(typeid) {

        var allli = document.getElementById("tabs").getElementsByTagName("a");

        for (var i = 0; i < allli.length; i++) {
            allli[i].className = "";
        }
        var current = document.getElementById(typeid);
        current.className = "current";
        document.getElementById("HidSearchCurrentHidType").childNodes[0].value = typeid;
    }
    function DoSignOn() {
        document.getElementById("spbt").childNodes[0].click();
    }
    function Entering(v) {
        var ld = document.getElementById("oaloading");
        ld.style.display = "inline";
        ld.innerHTML = "<img src=\"../Image/Ajax/loading_16x16.gif\" width=\"16px\" height=\"16px\" border=\"0\"> " + v;
     
    }
</script>

<style>
    #oaloading
    {
        display: none;
        background-color: #ffff99;
        position: absolute;
        top: 0px;
        right: 0px;
        padding: 0px;
        font-size: 12px;
        border: 1px #000 solid;
        color: #999;
        padding: 2px;
        padding-left: 5px;
        padding-right: 15px;
    }
</style>
<div id="tabs">
    <ul runat="server" id="TypeUl">
        <li runat="server" id="limanager"><a href='../Default.aspx' title='首页' runat="server"
            id="CmsManager">首页</a></li>
        <li runat="server" id="licheck"><a href='../CheckList.aspx' title='内容审核' runat="server"
            id="CmsCheck">内容审核</a></li>
        <li runat="server" id="limypublic"><a href='../MyPublic.aspx' title='内容审核' runat="server"
            id="CmsMyPublic">我的内容</a></li>
        <li runat="server" id="litimesheet">
            <asp:LinkButton ID="CmsTimeSheet" runat="server" ToolTip="TimeSheet" OnClick="CmsTimeSheet_Click">TimeSheet</asp:LinkButton>
        </li>
        <li runat="server" id="liemail"><a href='http://mail.Hyperion.com' title='公司邮箱' runat="server"
            id="CmsEmail" target="_blank">公司邮箱</a></li>
        <li runat="server" id="ligotooa">
            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="Search_Click" OnClientClick="Entering('登入中...请稍等');">进入OA</asp:LinkButton></li>
        <li runat="server" id="liadmin"><a href='../Admin/Default.aspx' title='后台管理' runat="server"
            id="CmsAdmin">后台管理</a></li>
    </ul>
</div>
<div id="oaloading">
</div>
<div id="HidSearchCurrentHidType">
    <asp:HiddenField ID="hidCurrentType" runat="server" />
</div>
